package com.ruoyi.terminal.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 设备分配与认领对象 dc_termasgn
 * 
 * @author ruoyi
 * @date 2021-02-02
 */
public class DcTermasgn extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 终端imei号 */
    @Excel(name = "终端imei号")
    private String termImei;

    /** 终端类别 */
    @Excel(name = "终端类别")
    private Integer termKind;

    /** 终端所属人，单位或个人编码 */
    @Excel(name = "终端所属人，单位或个人编码")
    private String termOwner;

    /** 特权短信号码，拥有控制终端的最高权限 */
    @Excel(name = "特权短信号码，拥有控制终端的最高权限")
    private String ownerSmsSender;

    /** 绑定对象，被监管人编码 */
    @Excel(name = "绑定对象，被监管人编码")
    private String perBound;

    /** 终端状态，0表示未认领，1表示已认领 */
    @Excel(name = "终端状态，0表示未认领，1表示已认领")
    private Integer asgnState;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gmtCreate;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gmtModified;

    public void setTermImei(String termImei) 
    {
        this.termImei = termImei;
    }

    public String getTermImei() 
    {
        return termImei;
    }
    public void setTermKind(Integer termKind) 
    {
        this.termKind = termKind;
    }

    public Integer getTermKind() 
    {
        return termKind;
    }
    public void setTermOwner(String termOwner) 
    {
        this.termOwner = termOwner;
    }

    public String getTermOwner() 
    {
        return termOwner;
    }
    public void setOwnerSmsSender(String ownerSmsSender) 
    {
        this.ownerSmsSender = ownerSmsSender;
    }

    public String getOwnerSmsSender() 
    {
        return ownerSmsSender;
    }
    public void setPerBound(String perBound) 
    {
        this.perBound = perBound;
    }

    public String getPerBound() 
    {
        return perBound;
    }
    public void setAsgnState(Integer asgnState) 
    {
        this.asgnState = asgnState;
    }

    public Integer getAsgnState() 
    {
        return asgnState;
    }
    public void setGmtCreate(Date gmtCreate) 
    {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtCreate() 
    {
        return gmtCreate;
    }
    public void setGmtModified(Date gmtModified) 
    {
        this.gmtModified = gmtModified;
    }

    public Date getGmtModified() 
    {
        return gmtModified;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("termImei", getTermImei())
            .append("termKind", getTermKind())
            .append("termOwner", getTermOwner())
            .append("ownerSmsSender", getOwnerSmsSender())
            .append("perBound", getPerBound())
            .append("asgnState", getAsgnState())
            .append("gmtCreate", getGmtCreate())
            .append("gmtModified", getGmtModified())
            .toString();
    }
}
